package jp.seraph.cui;

public class RootMode extends AbstractMode implements Mode {
    public RootMode(InternalConsole aConsole){
        super(null, aConsole);
    }

    /**
     *
     * @see jp.seraph.cui.SystemNode#getName()
     */
    public String getName() {
        return "";
    }

    /**
     *
     * @see jp.seraph.cui.SystemNode#setName(java.lang.String)
     */
    public void setName(String aName) {
        // なにもしない
    }

    /**
     *
     * @see jp.seraph.cui.SystemNode#getType()
     */
    public SystemNodeType getType() {
        return ModeType.getInstance();
    }

    /**
     *
     * @see jp.seraph.cui.SystemNode#isRoot()
     */
    public boolean isRoot() {
        return true;
    }

    /**
     *
     * @see jp.seraph.cui.AbstractNode#getParent()
     */
    @Override
    public Mode getParent() {
        return this;
    }

}
